//
//  MyTopicCell.swift
//  甜言蜜语
//
//  Created by yingli_yanfa_liuxingyu on 16/8/15.
//  Copyright © 2016年 wl. All rights reserved.
//

import UIKit

class MyTopicCell: UITableViewCell {
    @IBOutlet weak var iv: UIImageView!
    @IBOutlet weak var idLbl: UILabel!
    @IBOutlet weak var ptimeLbl: UILabel!
    @IBOutlet weak var messageLbl: UILabel!
    @IBOutlet weak var iv2: UIImageView!
    @IBOutlet weak var titleLbl: UILabel!
    var cellHeight: CGFloat = 0.0
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    func setCellContentWithCellInfo(model: myTopicInfo) {
        let font = UIFont(name: "Helvetica", size: 16)
       
        cellHeight += publicMethod.getLabHeigh(model.message, font: font!, width: SCREEN_WIDTH - 16) + 10
                
    }
    
}
